
package com.origin.onlinesys.service.modules.user.impl;

import com.origin.onlinesys.common.services.BaseService;
import com.origin.onlinesys.domain.modules.interviewsys.MenuBean;
import com.origin.onlinesys.persistence.modules.sys.account.MenuMapper;
import com.origin.onlinesys.service.modules.user.IMenuService;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by origin on 15-3-20.
 * 菜单操作类
 */
@Service
public class MenuServiceImpl extends BaseService<MenuBean> implements IMenuService{
    @Override
    public String checkHave(String name) {
        return ((MenuMapper)mapper).checkHave(name);
    }

    @Override
    public List<MenuBean> selectAll() {
        return ((MenuMapper)mapper).selectAll();
    }

    @Override
    public List<MenuBean> selectItem(String parentId) {
        Map map = new HashMap();map.put("parentId",parentId);
        return ((MenuMapper)mapper).selectItem(map);
    }

}
